class Method: #*类与对象
    def __init__(self,name,age): #* 构造方法接收参数
        self.__name = name #*构造方法获取参数初始化
        self.__age = age
    
    def get_name(self,name):
        self.__name = name
    def get_age(self,age):
        self.__age = age
    def get_info(self):
        return "姓名：%s,年龄：%d"%(self.__name,self.__age)    

def main():
    method = m=Method("li",28)
    method.get_name("wang")
    method.get_age(32)
    print(method.get_info())

main()
if __name__ == "main":
    main()



